<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><!-- #BeginTemplate "/Templates/method.dwt" -->
<head>
<!-- #BeginEditable "doctitle" --> 
<title>WIKINDX CLASS DOCUMENTATION</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/wikindx2/docs/docs.css" type="text/css" />
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h2>WIKINDX METHODS</h2>
<p><strong>Method:</strong><br />
  <!-- #BeginEditable "methodName" -->
  writeArray()
  <!-- #EndEditable -->
  </p>
<p><strong>Class:</strong><br />
<!-- #BeginEditable "className" -->
<a href="sessionClass.html">SESSION</a>
<!-- #EndEditable -->
<p><strong>Method Call:</strong><br />
  <!-- #BeginEditable "methodCall" -->
include_once("core/session/SESSION.php");<br />
$session = new SESSION();<br />
  BOOLEAN $session->writeArray(ASSOC_ARRAY: $array, [STRING: $prefix]);
  <!-- #EndEditable -->
  </p>
<p><strong>Description:</strong><br />
  <!-- #BeginEditable "methodDescription" -->
  Writes (create or update) all the members of $array to session variables 
with $prefix prefix. If $prefix is not set, the array will be written without a prefix.
<!-- #EndEditable -->
  </p>
<p><strong>Usage:</strong><br />
  <!-- #BeginEditable "methodUsage" -->
  <pre>
	$session = new SESSION();
	$array = array(
		"authWrite"	=>	FALSE,
		"title"		=>	"My WIKINDX!",
	);
	if(!$session->writeArray($array, "setup"))
		print "Unable to write session array!";
  </pre>
  will update or create session variables:<br />
<pre>
	setup_authWrite
	setup_title</pre>
with the appropriate values.

<p>writeArray() returns TRUE or FALSE upon success or failure.</p>
  
<!-- #EndEditable -->
</p>
<p align="right"><a href="../../index.html">WIKINDX home</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../../usage/index.html">WIKINDX usage</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../index.html">WIKINDX classes</a>
</p>
</body>
<!-- #EndTemplate -->
</html>
